import java.util.HashMap;

public class Test {
    private int count;

    static final char BRACKET_LEFT = '(';
    static final char BRACKET_RIGHT = ')';

    public Test() {

    }

    public static void main(String[] args) {
//        Test test=new Test(88);
//        System.out.println(test.count);

//        System.out.println("-----------------------------------------------");

//        Boolean flag = false;
//        if(flag = true){
//            System.out.println("true");
//        }else{
//
//            System.out.println("false");
//        }

//        System.out.println("-----------------------------------------------");
//
//        String str = "先進光電科技股份有限公司(（fads OPTO-ELECTRONICS TECHNOLOGY ）";
//        Test test = new Test();
//        String s = test.dataNormalize(str);
//        System.out.println(s);

//        System.out.println("-----------------------------------------------");

        String str1 = "Hitachi High-Tech Corporation 株式会社日立高新技术";
        String str2 = "Corporation 株式会";

        System.out.println(System.currentTimeMillis());
        System.out.println(dataNormalize(str1,str2));
        System.out.println(System.currentTimeMillis());
    }
    Test(int a) {
        count=a;
    }

    private static String dataNormalize(String str) {
        String replace = str.replace('（', BRACKET_LEFT)
                .replace('）', BRACKET_RIGHT)
                .replace(" ", "")
                .toUpperCase();
//        HashMap<Object, Object> objectObjectHashMap = new HashMap<>();
//        objectObjectHashMap.containsKey("");
//        System.out.println(replace);
//        System.out.println(str);
//        System.out.println("------------------------------");
//        char[] chars = str.toCharArray();
//        for (int i = 0; i < chars.length; i++) {
//            if(97 <= chars[i] || chars[i] <= 122){
//                chars[i] = Character.highSurrogate(chars[i]-32);
//            }
//        }
        return replace;
    }

    private static boolean dataNormalize(String str,String str2) {
        String replace = str.replace('（', BRACKET_LEFT)
                .replace('）', BRACKET_RIGHT)
                .replace(" ", "")
                .toUpperCase();
        String replace2 = str2.replace('（', BRACKET_LEFT)
                .replace('）', BRACKET_RIGHT)
                .replace(" ", "")
                .toUpperCase();
        return replace.indexOf(replace2) != -1;
    }
}
